package com.whj;


import com.whj.service.Context;
import com.whj.service.NettyService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Starter {
    public static void main(String[] args) {
        SpringApplication.run(Starter.class, args);
    }

    @Bean
    public void run() throws InterruptedException {
        NettyService.initService();// 127.0.0.1:9527
    }
}
